package day05;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/14
 */
public class ImitateToString {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};

        String result = "[";

        for (int i = 0; i < arr.length; i++) {
            if (i > 0) {
                result += ", ";
            }
            result += arr[i];
        }

        result += "]";

        System.out.println(result);
    }
}
